package com.atguigu.springcloud.service.impl;

import com.atguigu.springcloud.dao.PayDao;
import com.atguigu.springcloud.entity.Payment;
import com.atguigu.springcloud.service.PaymentService;
import org.apache.ibatis.annotations.Param;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class PaymentServiceImpl implements PaymentService {

    @Autowired
    private PayDao payDao;
    public int create(Payment payment){
        return payDao.create(payment);
    }
    public Payment getPaymentById(@Param("id") long id){
        return payDao.getPaymentById(id);
    }
}
